<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title> {$setting.webname}- 主页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <link href="/static/admin/layui/css/layui.css" rel="stylesheet">
    <![endif]-->
    <link rel="shortcut icon" href="/favicon.ico"> <link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/animate.css" rel="stylesheet">
    <link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="/static/admin/layui/css/layui.css" rel="stylesheet">
    <link href="/static/admin/css/searchNav.css?v=4.1.0" rel="stylesheet">
    <style>
        * { touch-action: pan-y; } 
    </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <!-- 导航头部开始 -->
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:15px;">
                                        <!-- <i class="fa fa-area-chart"></i> -->
                                        欢迎您:<strong style="font-size:20px;" class="font-bold"> {$user.username}</strong>
                                    </span>
                                </span>
                            </a>
                        </div>
                        <div class="logo-element">教育</div>
                    </li>
                    <li>
                        <a class="J_menuItem" href="{:url('Home/index')}">
                            <i class="fa fa-home"></i>
                            <span class="nav-label">主页</span>
                        </a>
                    </li>
                    <!-- 导航头部结束 -->
                    {foreach $list as $vo}
                    {if condition="$vo.sort%20==1"}
                       <li class="line dk"></li>
                        <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                            <span class="ng-scope">{$vo.comment}</span>
                        </li>
                    {/if}
                    <!-- 导航组开始 -->
                    <li>
                        <a href="#">
                            <i class="fa {$vo.icon}"></i>
                            <span class="nav-label">{$vo.title}</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            {foreach $vo.menuTow as $vs}
                            <li>
                                <a class="J_menuItem" href="/admin/{$vs.href}"><i class="fa {$vs.icon}"></i>{$vs.title}</a>
                            </li>
                            {/foreach}
                        </ul>
                    </li>
                    <!-- 导航组结束 -->
                    {/foreach}
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper"  class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a> 
                        <!-- <a class=" minimalize-styl-2 btn btn-info btn-search" href="#" title="搜索"><i class="fa fa-search"></i> </a> -->
                        <a class=" minimalize-styl-2 btn btn-info btn-reload reloadForm" href="#" title="刷新"><i class="fa fa-refresh"></i> </a>
                        
                        <a class=" minimalize-styl-2 btn btn-info btn-back" href="#" title="上一页"><i class="fa fa-reply"></i> </a>
                    	 
                    </div>

                            
                    
                </nav>
            </div>
            <!-- 主题内容开始 -->
            <div class="row J_mainContent" id="content-main">
                <iframe id="J_iframe" width="100%" height="100%" src="{:url('Home/index')}" frameborder="0" data-id="" seamless></iframe>
            </div>
            <!-- 主题内容结束 -->
        </div>

        <!--右侧部分结束-->
       

        <!-- 右侧搜索部分 -->
        <div class="searchNav searchHide" id="searchNavId">
            <div class="row">
                <div class="col-sm-3">
                    
                    <div class="input-group">
                        <input type="text" placeholder="请输入关键词" class="input-sm form-control"><span class="input-group-btn">
                        <button type="button" id="searchBtn" class="btn btn-sm btn-primary"> 搜索</button> </span>
                    </div>
                    <div class="searchStatus">
                        <input type="radio" name="sstj" id="sid1">
                        <label for="sid1"class="">不限</label>
                        <input type="radio" name="sstj" id="sid2">
                        <label for="sid2"class="">电话 </label>
                        <input type="radio" name="sstj" id="sid3">
                        <label for="sid3"class="">姓名</label>
                    </div>
                </div>
            </div>

            <!-- <div class="searchResult layui-collapse">
                        <div class="layui-colla-item">
                              <h2 class="layui-colla-title">搜索结果</h2>
                              <div class="layui-colla-content layui-show">
                                    <iframe id="J_iframe" width="100%" height="100%" src="{:url('Admins/admin')}" frameborder="0" data-id="" seamless></iframe>
                              </div>
                        </div>
                        <div class="layui-colla-item">
                              <h2 class="layui-colla-title">咨询日志</h2>
                              <div class="layui-colla-content">
                                    <iframe id="J_iframe" width="100%" height="100%" src="{:url('Admins/admin')}" frameborder="0" data-id="" seamless></iframe>
                              </div>
                        </div>
            </div> -->
        </div>
        <!-- 右侧搜索部分 -->
    </div>

    <!-- 全局js -->
    <script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/static/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/static/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="/static/admin/js/plugins/layer/layer.min.js"></script>

    <script src="/static/admin/js/searchNav.js"></script>

    <!-- 自定义js -->
    <script src="/static/admin/js/hAdmin.js?v=4.1.0"></script>
    <script type="text/javascript" src="/static/admin/js/index.js"></script>

    <!-- 第三方插件 -->
    <script src="/static/admin/js/plugins/pace/pace.min.js"></script>
    <!--layui-->
    <script src="/static/admin/layui/layui.js"></script>
    
    <script>
        layui.use('layer', function () { //独立版的layer无需执行这一句
                var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
                //点击提交
                $("#exits").click(function () {
                    $.post("{:url('Login/exits')}", {}, function (data) {
                        layer.msg(data.msg, { time: 2000 }, function () {
                            if (data.url) {

                                window.location.href = data.url;
                            }
                        });

                    })
                });
            });
            
            //刷新子页面
            $(".reloadForm").on('click', function () {
                document.getElementById('J_iframe').contentWindow.location.reload();
            });

            //子页面返回上一页
            $(".btn-back").click(function () {
                document.getElementById('J_iframe').contentWindow.history.back(-1);
            });

            // //展开关闭搜索框
            // $(".btn-search").on('click',function(){
            //     var isShow = $(".searchNav").attr('class');
            //     if(isShow=='searchNav searchShow'){
            //         closeSearch();
            //     }else{
            //         openSearch();
            //     }

            // });

            layui.use('element', function () {
                var element = layui.element;
            });

    </script>
</body>

</html>
